﻿using System.Collections;
using System.Collections.Generic;
using Workflow.Common.Dao;
using Workflow.Dto;
using Workflow.Model;

namespace Workflow.IDAO
{
	public interface IUserDao : IRepositoryBase<User>
	{
		/// <summary>
		/// 根据查询条件取得分页User列表
		/// </summary>
		/// <param name="count"></param>
		/// <param name="pageIndex"></param>
		/// <param name="pageSize"></param>
		/// <param name="userQueryDto"></param>
		/// <returns></returns>
		IList<User> GetUsersByPage(out long count, int pageIndex, int pageSize, UserQueryDto userQueryDto);
        /// <summary>
        /// 验证用户登录
        /// </summary>
        /// <param name="username"></param>
        /// <param name="password"></param>
        /// <returns></returns>
	    UserQueryDto UserLogin(long username,string password);


		/// <summary>
		/// 通过权限取得对应的用户
		/// </summary>
		IList<User> GetUserForRole(int role);
	}
}
